IO = {
    'ENGINE': "gglib.io_engines.select.SelectIO",
    "BIND_ADDRESS": ("127.0.0.1", 6767),
    "SZ_SEND_BUFFER": 0xFFFF,
    "SZ_RECV_BUFFER": 0xFFFF,
    "SOCKET_KEEPALIVE": (5, 5)
}

NUM_WORKERS = 10

DATABASE = {
    "NAME": "mysql",
    "OPTIONS": {
        "HOST": "10.2.3.41",
        "PORT": 3306,
        "USER": "ggchat",
        "PASSWORD": "123456",
        "DB": "ggchat"
    }
}

LOGGER = {
    "BACKEND": "gglib.loggers.file.FileHandler",
    "OPTIONS": {
        "file": "ggchat.log"
    },
    "LEVEL": "warn",  # DEBUG, INFO, WARN, ERROR, CRITICAL
    "FORMAT": "",
}

CACHE = {
    "BACKEND": "gglib.caches.redis.RedisCache",
    "OPTIONS": {
        "host": "10.2.3.41",
        "port": 6379,
        "password": "123456"
    }
}

MIDDLEWARES = []

AUTHENTICATION_BACKENDS = ["gglib.auth.AuthenticationBackend"]
